package com.whcoding.test.annotion;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @program: spring-boot-learning
 * @description:
 * @author: whcoding
 * @create: 2022-09-06 15:00
 **/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface FieldAnnotation {
	/**
	 * 字段名称
	 * @return
	 */
	String fieldName();

	/**
	 * 对应数据库字段
	 * @return
	 */
	String dataColumn();
}
